/**
 * 系统设置路由
 */

import EmptyLayout from '@/layout/EmptyLayout'

const systemSettingRouter = {
  path: 'system',
  component: EmptyLayout,
  redirect: '/upms/system/systemConfig',
  name: 'system',
  meta: { title: '系统设置', icon: 'menuSystemSetting' },
  children: [{
    path: 'systemConfig',
    name: 'systemConfig',
    component: () => import('@/views/upms/systemSetting/systemConfig/index'),
    meta: { title: '参数配置', icon: 'menuSystemConfig' }
  }, {
    path: 'dataDict',
    name: 'dataDict',
    component: () => import('@/views/upms/systemSetting/dictionary/upmsDataDict'),
    meta: { title: '字典管理', icon: 'meunDataDict' }
  }, {
    path: 'categoryDict',
    name: 'categoryDict',
    component: () => import('@/views/upms/systemSetting/upmsCategoryDict'),
    meta: { title: '分类字典', icon: 'meunDataDict' }
  }, {
    path: '',
    name: 'systemIndex',
    component: () => import('@/views/upms/systemSetting/systemManager'),
    meta: { title: '系统管理', icon: 'menuSystemSetting' }
  }, {
    path: 'secretKey',
    name: 'secretKey',
    component: () => import('@/views/upms/systemSetting/proof'),
    meta: { title: '密钥管理', icon: 'menuSecretKey' }
  }, {
    path: 'notice',
    name: 'systemNotice',
    component: () => import('@/views/upms/systemSetting/notice/index'),
    meta: { title: '通知公告', icon: 'menuNotice' }
  }, {
    path: 'notice/create',
    name: 'systemNoticeCreate',
    component: () => import('@/views/upms/systemSetting/notice/create'),
    meta: { title: '通知公告发布', icon: 'menuNotice', activeMenu: 'systemNotice' }
  }, {
    path: 'notice/details/:id',
    name: 'systemNoticeDetails',
    component: () => import('@/views/upms/systemSetting/notice/details'),
    meta: { title: '通知公告详情', icon: 'menuNotice' },
    hidden: true
  }, {
    path: 'notice/sendDetails/:id',
    name: 'systemNoticeSendDetails',
    component: () => import('@/views/upms/systemSetting/notice/sendDetails'),
    meta: { title: '通知公告详情', icon: 'menuNotice' },
    hidden: true
  }, {
    path: 'region',
    name: 'region',
    component: () => import('@/views/upms/systemSetting/region'),
    meta: { title: '行政区划', icon: 'menuRegion' }
  }, {
    path: 'help',
    name: 'help',
    component: () => import('@/views/upms/systemSetting/help/index'),
    meta: { title: '帮助文档', icon: 'menuHelp' }
  }, {
    path: 'help/details/:id',
    name: 'helpDetails',
    component: () => import('@/views/upms/systemSetting/help/details'),
    meta: { title: '帮助文档详情', icon: 'menuHelp' },
    hidden: true
  }, {
    path: 'app',
    name: 'appVersion',
    component: () => import('@/views/upms/systemSetting/app/appVersion'),
    meta: { title: 'APP版本', icon: 'menuApp' }
  }, {
    path: 'feedback',
    name: 'feedback',
    component: () => import('@/views/upms/systemSetting/upmsFeedback'),
    meta: { title: '意见反馈', icon: 'menuHelp' }
  }, {
    path: 'smsCode',
    name: 'smsCode',
    component: () => import('@/views/upms/systemSetting/smsCode'),
    meta: { title: '验证码', icon: 'menuSmsCode' }
  }]
}

export default systemSettingRouter
